package tw.com.book.domain.dao;

import tw.com.book.BookApplication;
import tw.com.book.componet.PairValue;
import tw.com.book.componet.TableContent;
import tw.com.book.domain.DBDomain;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class BaseDAO {

	private transient SQLiteDatabase sqlite;
	private transient Context ct;

	public BaseDAO(SQLiteDatabase sqlite, Context ct) {
		this.sqlite = sqlite;
		this.ct = ct;
	}

	public SQLiteDatabase getSqlite() {
		return sqlite;
	}

	public TableContent getTable(String table, Context ct) {

		final BookApplication app = (BookApplication) ct
				.getApplicationContext();
		return app.getTable(table);
	}

	public Context getCt() {
		return ct;
	}



}
